﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace VO.Web.Utils
{
    public class DateTimeUtils
    {
        public static string GetCompletedTimeString(long time)
        {
            TimeSpan ts = new TimeSpan(10000000 * time);
            return string.Format("{3}{0:00}:{1:00}:{2:00}", ts.Hours, ts.Minutes, ts.Seconds,
                ts.Days > 0 ?
                ts.Days == 1 ? ts.Days + " day " : ts.Days + " days "
                : string.Empty);
        }
    }
}